package com.example.server.web.domain.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
 * 班级添加学生传输对象
 */
@ApiModel(value = "班级添加学生传输对象", description = "")
@Data
public class ClassStudentDto {


    @ApiModelProperty(value = "学生的用户名（学号）",required = true)
    @NotEmpty(message = "请选择学生")
    private List<String> usernames;

    @NotNull(message = "班级id不能为空")
    @ApiModelProperty(value = "班级id",required = true)
    private Long classId;
}
